package com.training.java.core.collections.car.post15;

import java.util.ArrayList;
import java.util.List;

public class TelevisionDemo {

	public static void main(String[] args) {
		
		Television tv1 = new Television("LG", "LED", true);
		
		Television tv2 = new Television("Sony", "LCD", false);
		
		Television tv3 = new Television("Sharp", "LED", true);
		
		List<Television> tvs = new ArrayList<Television>();
		
		tvs.add(tv1);
		tvs.add(tv2);
		tvs.add(tv3);
		
		for(Television aTelevision : tvs){
			
			System.out.println("Company = " + aTelevision.getCompany());
			System.out.println("Type = " + aTelevision.getType());
			System.out.println("3DEnabled = " + aTelevision.isenabled3D());
			
			
		}

	}

}
